package com.ChengXiZi.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;


/**
 * 评论表视图VO
 *
 * @author ChengX
 * @since 2025-04-21 10:27:12
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "Comments视图对象", description = "评论表视图VO")
public class CommentsVO {

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("帖子id")
    private Long postId;

    @ApiModelProperty("评论者id")
    private Long userId;

    @ApiModelProperty("父评论")
    private Long parentId;

    @ApiModelProperty("评论内容")
    private String content;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("评论时间")
    private LocalDateTime createTime;

    @ApiModelProperty("点赞数")
    private Integer likes;
}